package jp.reflexworks.atom.util;

import java.text.SimpleDateFormat;
import java.util.Date;

public class DateUtil {

	public static String getDateTime(Date date) {
		SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss");
		String datestring = format.format(date);
		format = new SimpleDateFormat("Z");
		String zone = format.format(date);
		datestring += zone.substring(0,3)+":"+zone.substring(3,5);
		return datestring;
	}

}
